import React, {Component} from 'react';
import {View, Text,Button} from 'react-native';

export default class WelcomePage extends Component {
    render() {
        const {navigation} = this.props;
        return (
            <View>
                <Text>WelcomePage</Text>
                <Button
                    title="Go to Home"
                    onPress={()=>{
                    navigation.navigate("Home")
                }}
                />
            </View>
        )
    }
}